﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WLYT.Domain.Model;

namespace WLYT.Application.Interfaces
{
    public interface IUserService : IBaseService<User>
    {
        Task<User> GetModelAsync(string name, string pwd);
        Task<Tuple<IList<User>, int>> GetModelsByPageAsync(string search, int pageSize, int pageIndex);
        Task<bool> Save(User model);
        Task<bool> EditPassword(int id, string password, string newPassword);
    }
}
